<?php

class CHCLang extends AbstractHCObject
{
    private $m_asMonth       = array();
    private $m_asWeekDay     = array();
    
    
    public function __construct()
    {
        parent::__construct();
        
        $this->setFrench();
    }
    
    
    public function setFrench()
    {
        $this->setFrenchMonths();
        $this->setFrenchWeekDays();
    }
    
    
    public function setMonthName($pnMonthNumber, $psMonthName)
    {
        if (CSDebug::assertInteger($pnMonthNumber, false)) return false;
        if (CSDebug::assertString($psMonthName)) return false;
        
        if ($pnMonthNumber >= 0 || $pnMonthNumber < 12 )
            $this->m_asMonth[$pnMonthNumber] = $psMonthName;
    }
    
    
    public function setWeekDay($pnWeekDayNumber, $psWeekDayName)
    {
        if (CSDebug::assertInteger($pnWeekDayNumber, false)) return false;
        if (CSDebug::assertString($psWeekDayName)) return false;
        
        if ($pnWeekDayNumber >= 0 || $pnWeekDayNumber <= 6 )
            $this->m_asWeekDay[$pnWeekDayNumber] = $psWeekDayName;
    }
    
    
    public function setFrenchWeekDays()
    {
        $this->setWeekDay(0, 'Dimanche');
        $this->setWeekDay(1, 'Lundi');
        $this->setWeekDay(2, 'Mardi');
        $this->setWeekDay(3, 'Mercredi');
        $this->setWeekDay(4, 'jeudi');
        $this->setWeekDay(5, 'Vendredi');
        $this->setWeekDay(6, 'Samedi');
        
        $this->setParam('weekdays', $this->m_asWeekDay);
    }
    
    
    public function setFrenchMonths()
    {
        $this->setMonthName(0, 'Janvier');
        $this->setMonthName(1, 'Fevrier');
        $this->setMonthName(2, 'Mars');
        $this->setMonthName(3, 'Avril');
        $this->setMonthName(4, 'Mai');
        $this->setMonthName(5, 'Juin');
        $this->setMonthName(6, 'Juillet');
        $this->setMonthName(7, 'Aout');
        $this->setMonthName(8, 'Septembre');
        $this->setMonthName(9, 'Octobre');
        $this->setMonthName(10, 'Novembre');
        $this->setMonthName(11, 'Decembre');
        
        $this->setParam('months', $this->m_asMonth);
    }
    
    
    
}

?>